<template>
    <fieldset>
        <legend>其他组件</legend>
        <h1>{{msg}}</h1>
        <modal :visible="isShow" @cancle="handleCancle"> </modal>
        <button @click="handleClick(),add(),showModal()">点击</button>
    </fieldset>
</template>
<script>
    import other from "../../mixins/other";
    import modalMix from "@/mixins/modal"
    export default {
        mixins:[other,modalMix],    //混入
        deta(){
            return {
                msg:"组件的msg"
            }
        },
        mounted(){
            console.log("组件的mounted");
        },
        methods:{
            handleClick(){
                console.log("组件的点击函数");
            }
        }

    }
</script>